<script lang="ts" setup>
import {getProApi} from "@/api/pro"
import mytable from "@/myLib/mytable";

const columns = [
    {
        label: '商品编号',
        prop: 'proid',
        width:"180px"
    },
    {
        label: '商品名称',
        prop: 'proname',
        width:"500px"
    },
    {
        label: '价格',
        prop: 'originprice',
        width:"180px"
    }
]

const getProFn = ()=>getProApi({count:1,limitNum:5})

</script>

<template>
    <mytable :getDataApi="getProFn"   :columns="columns" ></mytable>
</template>

<style lang="scss" scoped>
    
</style>
